package com.lyf.scm.plan.insfrastructure.db.dataobject;

import lombok.Data;

import java.util.Objects;

/**
 * 通用分页行
 *
 * @author wangchlei
 * @date 2020/10/17
 */
@Data
public class GeneralItemRowDO {
    private String areaCode;
    private String skuCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        GeneralItemRowDO that = (GeneralItemRowDO) o;
        return areaCode.equals(that.areaCode) &&
                skuCode.equals(that.skuCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(areaCode, skuCode);
    }
}
